edu.stanford.smi.protege.util
Class TreeTarget
java.lang.Object
edu.stanford.smi.protege.util.TreeTarget
- All Implemented Interfaces:
- DropTargetListener, EventListener
- Direct Known Subclasses:
- ClsesTreeTarget, SlotsTreeTarget
public abstract class TreeTarget
- extends Object
- implements DropTargetListener
Standard drop target side drag and drop support for a tree control. The actual processing associated with the
drop is handled by a template method.
- Author:
- Ray Fergerson
|
Constructor Summary |
protected |
TreeTarget(boolean allowsBetweenDrops)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeTarget
protected TreeTarget(boolean allowsBetweenDrops)
doDrop
public abstract boolean doDrop(JTree tree,
Object source,
int row,
Object area)
doDrop
protected boolean doDrop(JTree tree,
Collection sources,
int row,
Object area)
dragEnter
public void dragEnter(DropTargetDragEvent e)
- Specified by:
dragEnter in interface DropTargetListener
dragExit
public void dragExit(DropTargetEvent e)
- Specified by:
dragExit in interface DropTargetListener
dragOver
public void dragOver(DropTargetDragEvent e)
- Specified by:
dragOver in interface DropTargetListener
drop
public void drop(DropTargetDropEvent e)
- Specified by:
drop in interface DropTargetListener
getLastDropSucceeded
public static boolean getLastDropSucceeded()
dropActionChanged
public void dropActionChanged(DropTargetDragEvent e)
- Specified by:
dropActionChanged in interface DropTargetListener
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2012 Stanford University.